package org.asg.dis.service;

import org.springframework.stereotype.Service;

@Service
public class RoleService {

//    @Autowired
//    private RoleRepository roleRepository;
//
//    @Transactional
//    public Role getRoleWithPermissions(Integer roleId) {
//        Role role = roleRepository.findById(roleId).orElseThrow(() -> new RuntimeException("Role not found"));
//        role.getPermissions().size(); // 触发 lazy 加载
//        return role;
//    }
}
